home *** CD-ROM | disk | FTP | other *** search
- Path: unrza3.dialin.rrze.uni-erlangen.de!not-for-mail
- From: mskuhn@unrza3.dialin.rrze.uni-erlangen.de (Markus Kuhn)
- Newsgroups: comp.std.c
- Subject: Binary Mode stdin/stdout
- Date: 6 Feb 1996 01:33:20 +0100
- Organization: Markus Kuhn, 91080 Uttenreuth, Germany
- Message-ID: <4f67kg$11g@cortex.dialin.rrze.uni-erlangen.de>
- Reply-To: mskuhn@cip.informatik.uni-erlangen.de
- NNTP-Posting-Host: unrza3.dialin.rrze.uni-erlangen.de
-
- Why isn't there a standard way of allowing an ISO C program to switch
- the standard input and output into binary transparent mode (as with
- the "b" flag in fopen()/freopen() for normal files)?
-
- Has this just been forgotten or is there a good technical reason?
-
- The lack of a function which makes stdin/stdou binary transparent is
- always a pain if you port software (e.g. zcat) which can under Unix be
- used to pipe binary files from one program to the next to systems like
- MS-DOS where there is a difference between binary and text mode
- streams.
-
- Markus
-
- --
- Markus Kuhn, Computer Science student -- University of Erlangen,
- Internet Mail: <mskuhn@cip.informatik.uni-erlangen.de> - Germany
- WWW Home: <http://wwwcip.informatik.uni-erlangen.de/user/mskuhn>
-